/*
    4. Write a program in C to convert a tm object to custom textual representation. 

    Expected Output :

    The textual representation of specified date and time :                                                                      
    September Sun Sep  2 16:30:32 2016 pm                                                                                          
*/

#include <stdio.h>
#include <time.h>

int main(void)
{
    char str[128];
    time_t rawtime;
    struct tm *info;
    time(&rawtime);
    info = localtime(&rawtime);
    strftime(str, sizeof(str), "%B %a %b  %d %H:%M:%S %Y %p", info);
    printf("%s", str);

    return 0;
}
